package com.holly.unit.bpmn.activiti.pojo;

import com.holly.unit.core.pojo.request.BaseRequest;
import com.holly.unit.scanner.api.annotation.field.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 类描述: 委托参数封装
 *
 * @author fxr
 * @version 1.0.0
 * @date 2022/3/8 15:15
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ProcessTaskDelegateRequest extends BaseRequest{

    @NotNull(message = "任务id不能为空", groups = {delegate.class})
    @ChineseDescription("任务id")
    String id;

    @NotNull(message = "委托用户id不能为空", groups = {delegate.class})
    @ChineseDescription("委托用户id")
    String userId;


    @NotNull(message = "流程实例id不能为空", groups = {delegate.class})
    @ChineseDescription("流程实例id")
    String procInstId;
    @NotNull(message = "流程评论不能为空", groups = {delegate.class})
    @ChineseDescription("流程评论")
    String comment;

    @NotNull(message = "是否发送站内消息", groups = {delegate.class})
    @ChineseDescription("站内消息 是-true 否-false")
    Boolean sendMessage;
    @NotNull(message = "是否发送短信通知", groups = {delegate.class})
    @ChineseDescription("短信消息 是-true 否-false")
    Boolean sendSms;
    @NotNull(message = "是否发送邮件通知", groups = {delegate.class})
    @ChineseDescription("邮件通知 是-true 否-false")
    Boolean sendEmail;




    public @interface delegate{}
}
